<?php

namespace console\controllers;

use api\modules\ua\models\Shops;
use api\modules\ua\models\Baidu;
use yii\console\Controller;

class EventController extends Controller
{
    public function actionTest(){
        echo "hello world";
    }

    public function actionCheckOnline(){
        $model  = new Shops();
        $model->checkOnline();
    }

    public function actionBaiduToken(){
        $baidu = new Baidu();
        $res = $baidu->newBaiduToken();
        print_r($res);
    }
}
